import { Component, OnInit } from '@angular/core';
import { HttputilsService } from '../../services/httputils.service';
@Component({
  selector: 'app-musiclist',
  templateUrl: './musiclist.component.html',
  styleUrls: ['./musiclist.component.css']
})
export class MusiclistComponent implements OnInit {
  public songlist: any = [];
  constructor(public http: HttputilsService) { }

  ngOnInit() {
    this.http.get('https://www.mxnzp.com/api/music/recommend/list').then((value: any) => {
      console.log(value);
      this.songlist = value.data;
    });
  }

}
